package com.iplant.mes.service.po.sfc;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.iplant.base.po.BasePO;
import com.iplant.base.po.enums.DBSchemas;
import com.iplant.base.utils.annotation.field.DBField;
import com.iplant.base.utils.annotation.condition.DBCondition;
import com.iplant.base.utils.annotation.join.DBJoin;
import com.iplant.base.utils.annotation.po.DBBasePO;

import java.io.Serializable;

/**
 * 工位环境参数
 *
 * @author YouWang·Peng
 * 2024-03-25 10:06:22
 */
@DBBasePO(TableName = "SFCStationEnvironment", CheckName = {"StationID"}, Schemas = DBSchemas.MES, Code = false, Name = false, Active = false)
public class SFCStationEnvironment extends BasePO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 工位ID
     */
    @DBCondition
    @DBField
    public int StationID = 0;

    /**
     * 工位名称
     */
    @DBCondition
    @DBJoin(name = "Name", tableName = "fmc_station", tableAsName = "station1", Schemas = DBSchemas.Basic, MainTableField = "StationID")
    public String StationName = "";

    /**
     * 工位编码
     */
    @DBCondition
    @DBJoin(name = "Code", tableName = "fmc_station", tableAsName = "station1", Schemas = DBSchemas.Basic, MainTableField = "StationID")
    public String StationCode = "";

    /**
     * 温度
     */
    @DBField
    public float Temperature = 0.0f;

    /**
     * 湿度
     */
    @DBField
    public float Humidity = 0.0f;

    /**
     * 洁净度
     */
    @DBField
    public float Cleanliness = 0.0f;

    @JsonProperty("StationID")
    public int getStationID() {
        return StationID;
    }

    public void setStationID(int stationID) {
        StationID = stationID;
    }

    @JsonProperty("StationName")
    public String getStationName() {
        return StationName;
    }

    public void setStationName(String stationName) {
        StationName = stationName;
    }

    @JsonProperty("StationCode")
    public String getStationCode() {
        return StationCode;
    }

    public void setStationCode(String stationCode) {
        StationCode = stationCode;
    }

    @JsonProperty("Temperature")
    public float getTemperature() {
        return Temperature;
    }

    public void setTemperature(float temperature) {
        Temperature = temperature;
    }

    @JsonProperty("Humidity")
    public float getHumidity() {
        return Humidity;
    }

    public void setHumidity(float humidity) {
        Humidity = humidity;
    }

    @JsonProperty("Cleanliness")
    public float getCleanliness() {
        return Cleanliness;
    }

    public void setCleanliness(float cleanliness) {
        Cleanliness = cleanliness;
    }

}